<?php 
    if($image_detail->num_rows()>0){
        $aRow=$image_detail->row();
    }
?>
<?php
    $image_path = './upload_photo/thumbs/' . $aRow->image;
    if (file_exists($image_path) && $aRow->image!=null) {
        $image_path = base_url() . 'upload_photo/thumbs/' . $aRow->image;

    } else {
        $image_path =base_url(). 'assets/noimage.gif';
    }
?>     
<form id="image_content" name="image_content" method="post" action="<?php echo site_url('image/share_picture/'.$aRow->id); ?>">
    <table width="500px" border="0" cellpadding="0" cellspacing="0" align="center">
        <tr>
            <td>
                <img width="150" src="<?php echo $image_path ?>">
            </td>
            <td>Votre commentaire sur cet image :<br/>
                <input type="text" name="image_content" id="image_content" size="50"/>
                <input type="hidden" name="image_name" id="image_name"/>
            </td>
        </tr>

        <tr>   
            <td></td> <td><input type="submit" name="share" id="btn_share_image" value="Share"/></td>
        </tr>

    </table>
</form>
